We don't actually propagate sensitivity information to submenus; we
simply make sure that they can never be open when the parent is
insensitive.
https://bugzilla.gnome.org/show_bug.cgi?id=702539
this.menu.connect('open-state-changed', Lang.bind(this, this._subMenuOpenStateChanged));
},
+ syncSensitive: function() {
+ let sensitive = this.parent();
+ this._triangle.visible = sensitive;
+ if (!sensitive)
+ this.menu.close(false);
+ },
+
_subMenuOpenStateChanged: function(menu, open) {
if (open)
this.actor.add_style_pseudo_class('open');